package com.xbongbong.paas.pojo.workflow.settings;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author 吴峰
 * @date 2021/05/10 10:25
 */
@Getter
@Setter
@ToString
public class WorkflowListPoJo implements Serializable {

    private static final long serialVersionUID = -7129679582241500020L;

    private Long id;

    private String version;

    private String name;

    private String formName;

    private Integer enable;

    private String creator;

    /**
     * 详细触发事件类型描述
     * 如：
     * 1. 表单事件：当新增或者更新记录时；仅新增记录时；仅更新时，仅删除时；
     */
    private String triggerEventInfo;

    /**
     * 最后启动时间
     */
    private String lastEnableTime;

    private Integer type;

    private Integer priority;

    private String memo;

    public WorkflowListPoJo() {
    }

    public WorkflowListPoJo(Long id, String name, String formName, Integer type, String triggerEventInfo, Integer enable, Integer priority, String lastEnableTime, String creator) {
        this.id = id;
        this.name = name;
        this.formName = formName;
        this.type = type;
        this.triggerEventInfo = triggerEventInfo;
        this.enable = enable;
        this.priority = priority;
        this.lastEnableTime = lastEnableTime;
        this.creator = creator;
    }

    public WorkflowListPoJo(Long id, String version, String name, Integer priority) {
        this.id = id;
        this.version = version;
        this.name = name;
        this.priority = priority;
    }
}
